package com.isasc.demo.pooled.mypool;

import lombok.Data;

import java.util.UUID;

/**
 * @author: ywy
 * @date: 2022-10-17
 * @desc:
 */
@Data
public class ShareBike {
    private String id;
    private String type;

    public ShareBike(String id, String type) {
        this.id = id;
        this.type = type;
    }

    public static ShareBike init() {
        try {
            // sleep
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return new ShareBike(UUID.randomUUID().toString(),"hello");
    }
}
